package com.example.development.mysqlStudy.controller;

import com.example.development.mysqlStudy.lock.LockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: vince_zww
 * @date: 2020/8/24 18:29
 * @desceription:
 */

@RestController
@RequestMapping("/mysql/lock")
@Slf4j
public class LockController {


    @Autowired
    private LockService lockService;

    @GetMapping("/row/selec01t")
    public void select01(){
        log.info("[执行了selest01查询]");
        lockService.select01();
    }

    @GetMapping("/row/select02")
    public void select02(){
        log.info("[执行了selest02查询]");
        lockService.select02();
    }

    @GetMapping("/row/select03")
    public void select03(){
        log.info("[执行了selest03查询]");
        lockService.select03();
    }

    @GetMapping("/row/select01")
    public void update01(){
        log.info("[update01]");
        lockService.update01();
    }


/**
 *
 */


}
